/* pages/goodslist/goodslist.wxss */
Page {
    background-color: #f1f1f2;
}

.search {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    padding: 20rpx;

    input {
        text-align: center;
        width: 654rpx;
        height: 60rpx;
        background-color: #f7f7f7;
        border-radius: 30rpx;
    }

    image {
        width: 60rpx;
        height: 60rpx;
    }
}

.sorttype {
    display: flex;
    align-items: center;
    height: 90rpx;
    background-color: #fff;

    #all {
        width: 250rpx;
        font-size: 28rpx;
        text-align: center;
        color: #303133;
    }

    #sales {
        width: 250rpx;
        font-size: 28rpx;
        text-align: center;
        color: #303133;
    }

    #price {
        width: 250rpx;
        font-size: 28rpx;
        text-align: center;
        color: #303133;

        image {
            margin-left: 8rpx;
            width: 24rpx;
            height: 24rpx;
        }
    }
}

.active {
    color: #e49a3d!important;
}

.scroll {
    display: flex;
    flex-wrap: wrap;
    // align-items: center;
    justify-content: space-around;
}

.goodcard {
    margin-top: 8rpx;
    width: 362rpx;
    height: 517rpx;
    background-color: #fff;

    image {
        width: 100%;
        height: 359rpx;
    }

    span {
        margin: 15rpx 16rpx 0 16rpx;
        color: #484848;
        font-size: 26rpx;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .price {
        display: flex;
        align-items: center;

        .nowPrice {
            font-size: 32rpx;
            line-height: 48rpx;
            color: #f03c3c;
        }
    
        .prePrice {
            margin-left: 12rpx;
            font-size: 24rpx;
            text-decoration: line-through;
            color: #999;
        }
    }
}

.likecard {
    display: flex;
    align-items: center;
    padding: 24rpx;
    margin: 8rpx;
    height: 288rpx;
    background-color: #fff;
  
    .left {
      width: 240rpx;
      height: 240rpx;
  
      image {
        width: 240rpx;
        height: 240rpx;
      }
    }
  
    .right {
      margin-left: 48rpx;
  
      .title {
        color: #484848;
        font-size: 28rpx;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
      }
  
      .num {
        margin-top: 32rpx;
        font-size: 24rpx;
        line-height: 40rpx;
        color: #999;
      }
  
      .price {
        margin-top: 4rpx;
  
        .nowPrice {
          font-size: 32rpx;
          line-height: 48rpx;
          color: #f03c3c;
        }
  
        .prePrice {
          margin-left: 12rpx;
          font-size: 24rpx;
          text-decoration: line-through;
          color: #999;
        }
      }
    }
  }

.noDetail {
    image {
        margin: 110rpx 221rpx 44rpx 221rpx;
        width: 308rpx;
        height: 200rpx;
    }

    .text {
        font-size: 30rpx;
        color: #808080;
        text-align: center;
    }
}